package com.cloud.platform.api;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author fuminwang
 * @Title: TestController
 * @Package com.cloud.platform.api
 * @Description:
 * @date 2018/11/1下午5:15
 */
@RestController
@RequestMapping("/user")
@Api(value = "/user",tags = "Users",description = "用户接口V1")
public class UserController {

    @Value("${user.test}")
    private String test;
    @Value("${server.port}")
    private String port;

    @ApiOperation(value = "用户", notes = "查询")

    @GetMapping
    public String query() {
        return "service port is  " + this.port;
    }
}
